

all: demo tpl css settings
	python src/microblog.py ./template.tpl ./content.txt > result.html

check:
	python src/check-settings.py

# first time run only
tpl:
	cp ./example/default.tpl ./template.tpl

css:
	cp ./example/timeline.css ./timeline.css

demo:
	cp ./example/demo.txt ./content.txt

settings:
	cp ./example/settings.toml ./settings.toml

.PHONY: clean
clean: 
	rm ./pages/*.html 
	rm ./tags/*/*.html 
	rm ./webring/*.html 
	rmdir ./pages ./tags/* ./tags ./webring
